package com.huiminpay.transaction.api;

import com.huiminpay.common.cache.domain.BusinessException;
import com.huiminpay.paymentagent.api.dto.PaymentResponseDTO;
import com.huiminpay.transaction.api.dto.PayOrderDTO;
import com.huiminpay.transaction.api.dto.QRCodeDto;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 有点儿意思
 * @Description:
 */
public interface TransactionService {

    /**
     * 生成二維碼地址封裝參數
     * @param qrCodeDto  商戶id 應用id  门店id 支付标题  描述
     * @return 二维码地址
     * @throws BusinessException
     */
    String createStoreQrcode(QRCodeDto qrCodeDto) throws BusinessException;


    /**
     * 保存订单 & 调代理服务对接支付宝下单接口
     * @param payOrderDTO 订单对象
     * @return
     * @throws BusinessException
     */
    PaymentResponseDTO<String> submitOrderByAli(PayOrderDTO payOrderDTO) throws BusinessException;
}
